# -*- coding: utf-8 -*-
from django.conf.urls import url
from myApp import views
from rest_framework.urlpatterns import format_suffix_patterns

urlpatterns = [
    url(r"server_list/$", views.ServerList.as_view()),
    url(r"^server_detail/(?P<pk>[0-9]+)/$", views.ServerDetail.as_view()),
    url(r'^users/$', views.UserList.as_view()),
    url(r'^users/(?P<pk>[0-9]+)/$', views.UserDetail.as_view()),

]
urlpatterns = format_suffix_patterns(urlpatterns)




